package com.qingmi.farmer.data.model;

import com.google.gson.annotations.SerializedName;

/**
 * 合作社
 * Created by 67535 on 2018/4/26.
 */

public class Cooperative {

    /*********************** 通用字段 ***********************/
    //合作社Id
    @SerializedName("CooperativeId")
    private String cooperativeId;

    //合作社名称
    @SerializedName("CooperativeName")
    private String cooperativeName;

    @SerializedName("CreateAt")
    private long createTime;

    @SerializedName("LinkName")
    private String linkName;

    /*********************** 登录特有的***********************/
    //合作社状态 登录时返回, 0:申请中， 1：签约成功
    @SerializedName("Status")
    private int status;

    /*********************** 合作社详情特有的 ***********************/
    //类型名称
    @SerializedName("TypeName")
    private String typeName;

    //合作社人员
    @SerializedName("PeopleNum")
    private int peopleNum;

    //联系人手机号码
    @SerializedName("Phone")
    private String phone;

    //简介
    @SerializedName("Introduce")
    private String introduce;

    //地址
    @SerializedName("Address")
    private String address;

    //管局
    @SerializedName("SuperviseName")
    private String superviseName;

    //如果有签约 显示 签约状态 非必需
    @SerializedName("Signing")
    private Signing signing;

    @SerializedName("Distance")
    private double distance;

    public String getCooperativeId() {
        return cooperativeId;
    }

    public void setCooperativeId(String cooperativeId) {
        this.cooperativeId = cooperativeId;
    }

    public String getCooperativeName() {
        return cooperativeName;
    }

    public void setCooperativeName(String cooperativeName) {
        this.cooperativeName = cooperativeName;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getStatus() {
        return status;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public int getPeopleNum() {
        return peopleNum;
    }

    public void setPeopleNum(int peopleNum) {
        this.peopleNum = peopleNum;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Signing getSigning() {
        return signing;
    }

    public void setSigning(Signing signing) {
        this.signing = signing;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long time) {
        this.createTime = time;
    }

    public String getLinkName() {
        return linkName;
    }

    public void setLinkName(String linkName) {
        this.linkName = linkName;
    }

    public String getSuperviseName() {
        return superviseName;
    }

    public void setSuperviseName(String superviseName) {
        this.superviseName = superviseName;
    }

    public double getDistance() {
        return distance;
    }

    public void setDistance(double distance) {
        this.distance = distance;
    }

    /**
     * 签约类
     */
    public class Signing{

        //签约时间
        @SerializedName("SignAt")
        private long signAt;

        //签约状态
        @SerializedName("Status")
        private int status;

        //申请时间
        @SerializedName("ApplyAt")
        private long applyAt;


        public long getSignAt() {
            return signAt;
        }

        public void setSignAt(long signAt) {
            this.signAt = signAt;
        }

        public long getApplyAt() {
            return applyAt;
        }

        public void setApplyAt(long applyAt) {
            this.applyAt = applyAt;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }
    }
}
